/*
 * @Author: HeAo
 * @Date: 2021-11-04 10:24:52
 * @LastEditTime: 2021-11-04 11:08:35
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\4-1-Nodejs\day05\briup-sc\utils\Connection.js
 * 别乱动！
 */
// 1.导入mysql模块
const mysql = require('mysql');
// 2.创建连接池
const pool = mysql.createPool({
  connectionLimit: 10,
  host: 'localhost',
  user: 'briup',
  password: 'briupSH',
  database: 'briup-sc-03'
})

module.exports = pool
// const connection = mysql.createConnection({
//   host: 'localhost',
//   user: 'briup',
//   password: 'briupSH',
//   database: 'briup-sc-03'
// })
// 3.开启连击
// connection.connect();

// module.exports = connection